package dao;

import java.io.Serializable;

import org.hibernate.Session;
import org.hibernate.Transaction;

import bean.ProductoBean;

import hbt.HibernateDAO;

public class ProductoDao implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void altaProducto(ProductoBean I)
	{
		Session s = HibernateDAO.getInstancia().getSession();
		Transaction t = s.beginTransaction();
		s.persist(I);
		t.commit();
	}

}
